var http = require("http");

   

http.createServer(function(req, res) {
	var html='<html>'
	+'<head>'
	+'<title>maze UI Touch</title>'
	+'<meta http-equiv="Content-Type" content="text/html;'
	+' charset=utf-8" />'
	+'<link rel="stylesheet" href="amazeui-touch/amazeui.touch.min.css">'
	+'</head>'
	+'<center>'
	+'<body>'
	+'<form action="" meyhod="post">'
	+'<input type="text" name="name" placeholder="随便">'
	+'<input type="submit" name="sub" value="提交" />'
	+'</form>'
	+'<script src="index.js"></script>'
	+'</body>'
	+'</center>'
	
	// var two=require("./index.js");
	// console.log();

  res.writeHead( 200 , {"Content-Type":"text/html"});

  res.write("<h1>Node.js</h1>");

  //res.write("<p>Hello World</p>");
  res.write(html);
  res.end("<p>beyondweb.cn</p>");


}).listen(100);

console.log("HTTP server is listening at port 100.");